//
//  PRTools.h
//  Lottery
//
//  Created by maihong on 2019/5/27.
//  Copyright © 2019 WYR. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AppDelegate.h"


NS_ASSUME_NONNULL_BEGIN

@interface PRTools : NSObject

/**
 *  HUD
 */
+ (void)showProgressHUD;
+ (void)showProgressHUD:(NSString *)string;
+ (void)showProgressHUDWithText:(NSString *)string afterDelay:(NSTimeInterval)time;
+ (void)showProgressHUDWithText:(NSString *)string font:(UIFont *)font afterDelay:(NSTimeInterval)time;

+ (void)showProgressHUDWithSucess:(NSString *)string afterDelay:(NSTimeInterval)time;
+ (void)showProgressHUDWithSucess:(NSString *)string font:(UIFont *)font afterDelay:(NSTimeInterval)time;

+ (void)showProgressHUDWithSucess:(NSString *)string subStr:(NSString *)subStr afterDelay:(NSTimeInterval)time;
+ (void)showProgressHUDWithSucess:(NSString *)string subStr:(NSString *)subStr font:(UIFont *)font afterDelay:(NSTimeInterval)time;

+ (void)showProgressHUDWithError:(NSString *)string afterDelay:(NSTimeInterval)time;
+ (void)showProgressHUDWithError:(NSString *)string font:(UIFont *)font afterDelay:(NSTimeInterval)time;

+ (void)showProgressHUDWithError:(NSString *)string subStr:(NSString *)subStr afterDelay:(NSTimeInterval)time;
+ (void)showProgressHUDWithError:(NSString *)string subStr:(NSString *)subStr font:(UIFont *)font afterDelay:(NSTimeInterval)time;

+ (void)hideProgressHUD;
+ (void)hideProgressHUD:(NSTimeInterval)time;




@end

NS_ASSUME_NONNULL_END
